package com.ruoyi.act.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.act.mapper.ExhibitionMapper;
import com.ruoyi.act.domain.Exhibition;
import com.ruoyi.act.service.IExhibitionService;

/**
 * 作品展栏目Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-11
 */
@Service
public class ExhibitionServiceImpl implements IExhibitionService 
{
    @Autowired
    private ExhibitionMapper exhibitionMapper;

    /**
     * 查询作品展栏目
     * 
     * @param exhId 作品展栏目主键
     * @return 作品展栏目
     */
    @Override
    public Exhibition selectExhibitionByExhId(Integer exhId)
    {
        return exhibitionMapper.selectExhibitionByExhId(exhId);
    }

    /**
     * 查询作品展栏目列表
     * 
     * @param exhibition 作品展栏目
     * @return 作品展栏目
     */
    @Override
    public List<Exhibition> selectExhibitionList(Exhibition exhibition)
    {
        return exhibitionMapper.selectExhibitionList(exhibition);
    }

    /**
     * 新增作品展栏目
     * 
     * @param exhibition 作品展栏目
     * @return 结果
     */
    @Override
    public int insertExhibition(Exhibition exhibition)
    {
        return exhibitionMapper.insertExhibition(exhibition);
    }

    /**
     * 修改作品展栏目
     * 
     * @param exhibition 作品展栏目
     * @return 结果
     */
    @Override
    public int updateExhibition(Exhibition exhibition)
    {
        return exhibitionMapper.updateExhibition(exhibition);
    }

    /**
     * 批量删除作品展栏目
     * 
     * @param exhIds 需要删除的作品展栏目主键
     * @return 结果
     */
    @Override
    public int deleteExhibitionByExhIds(Integer[] exhIds)
    {
        return exhibitionMapper.deleteExhibitionByExhIds(exhIds);
    }

    /**
     * 删除作品展栏目信息
     * 
     * @param exhId 作品展栏目主键
     * @return 结果
     */
    @Override
    public int deleteExhibitionByExhId(Integer exhId)
    {
        return exhibitionMapper.deleteExhibitionByExhId(exhId);
    }
}
